package com.dynamictpm.config;

import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 描述：： 动态线程池配置类
 * <p>
 * ------------------------------------
 *
 * @program: dynamic-tpm
 * @ClassName DynamicThreadPoolProperties
 * @author: it-yml
 * @create: 2023-07-04 21:15
 * @Version 1.0
 * --------------------------------------
 **/
@Slf4j
@Getter
@Setter
@ConfigurationProperties(prefix = DynamicThreadPoolProperties.PREFIX)
public class DynamicThreadPoolProperties {
    public static final String PREFIX = "spring.dynamic.thread-pool";

    /**
     * 服务地址
     */
    private String serverAddr;

    /**
     * 租户 ID
     */
    private String namespace;

    /**
     * 项目 ID
     */
    private String itemId;

    /**
     * 是否开启 banner
     */
    private boolean banner = true;
}
